<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>006-兄弟选择器</title>
		<style>
			/* 兄弟选择器：相邻的第一个元素 */
			.div0 + div {
				color: red;
			}

			/* 兄弟选择器：相邻的所有元素 */
			.div2 ~ div {
				color: blue;
			}
		</style>
	</head>
	<body>
		<div class="div0">div0</div>
		<div>div1</div>
		<div class="div2">div2</div>
		<div>div3</div>
		<div>div4</div>
		<div>div5</div>
	</body>
</html>
